<!-- MyLifeCycle.vue -->


<script setup lang="ts">
import { onBeforeMount } from 'vue'


onBeforeMount(()=> {
    console.log('beforeMount triggered!')
})

// figure 5-4

import { onMounted } from 'vue'

onMounted(() => {
    console.log('component instance: ', this)
})

</script>

